#include "SMPPMoreMessagesToSend.hpp"

using namespace smpp::pdu;

MoreMessagesToSend::MoreMessagesToSend(const quint8 nValue):
TLV(TLVtags::TAG_MORE_MESSAGES_TO_SEND,1),_Value(nValue){}

MoreMessagesToSend::MoreMessagesToSend(
const MoreMessagesToSend &nMoreMessagesToSend):
TLV(nMoreMessagesToSend),_Value(nMoreMessagesToSend.getValue()){}

bool MoreMessagesToSend::operator ==(
const MoreMessagesToSend &nMoreMessagesToSend) const{
	return (TLV::operator == (nMoreMessagesToSend) && 
			_Value == nMoreMessagesToSend.getValue());
}

bool MoreMessagesToSend::operator !=(
	const MoreMessagesToSend &nMoreMessagesToSend) const{
	return !this->operator == (nMoreMessagesToSend);
}

MoreMessagesToSend &MoreMessagesToSend::operator = (
	const MoreMessagesToSend &nMoreMessagesToSend){
	if(*this == nMoreMessagesToSend)
		return *this;
	TLV::operator = (nMoreMessagesToSend);
	_Value = nMoreMessagesToSend.getValue();
	return *this;
}

void MoreMessagesToSend::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 MoreMessagesToSend::getValue() const{
	return _Value;
}
